# filename: example8_8.py

class StudentClass:
    count = 0

    def __init__(self, name, age):
        self.name = name
        self.age = age
        StudentClass.count += 1


stu1 = StudentClass("Zhang San", 18)
stu2 = StudentClass("Li Si", 19)
print("number:", StudentClass.count)
print(stu1.name, stu1.age)